package com.baeldung.bidirect;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by dzy on 2018/9/2
 */
public class CustomListDeserializer extends StdDeserializer<List<ItemWithSerializer>> {
  public CustomListDeserializer() {
    this(null);
  }

  protected CustomListDeserializer(Class<?> vc) {
    super(vc);
  }

  @Override
  public List<ItemWithSerializer> deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {
    return new ArrayList<>();
  }
}
